Termination w.r.t. Q of the following Term Rewriting System could be proven:

Q restricted rewrite system:
The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(x, y) → timesIter(x, y, 0)
timesIter(x, y, z) → if(check(x), x, y, z, plus(z, y))
p(s(x)) → x
p(0) → 0
if(zero, x, y, z, u) → z
if(odd, x, y, z, u) → timesIter(p(x), y, u)
if(even, x, y, z, u) → plus(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))

Q is empty.


QTRS
  ↳ Overlay + Local Confluence

Q restricted rewrite system:
The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(x, y) → timesIter(x, y, 0)
timesIter(x, y, z) → if(check(x), x, y, z, plus(z, y))
p(s(x)) → x
p(0) → 0
if(zero, x, y, z, u) → z
if(odd, x, y, z, u) → timesIter(p(x), y, u)
if(even, x, y, z, u) → plus(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))

Q is empty.

The TRS is overlay and locally confluent. By [19] we can switch to innermost.

↳ QTRS
  ↳ Overlay + Local Confluence
QTRS
      ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(x, y) → timesIter(x, y, 0)
timesIter(x, y, z) → if(check(x), x, y, z, plus(z, y))
p(s(x)) → x
p(0) → 0
if(zero, x, y, z, u) → z
if(odd, x, y, z, u) → timesIter(p(x), y, u)
if(even, x, y, z, u) → plus(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)


Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

IF(odd, x, y, z, u) → P(x)
HALF(s(s(x))) → HALF(x)
IF(even, x, y, z, u) → HALF(z)
IF(odd, x, y, z, u) → TIMESITER(p(x), y, u)
TIMESITER(x, y, z) → IF(check(x), x, y, z, plus(z, y))
TIMESITER(x, y, z) → PLUS(z, y)
IF(even, x, y, z, u) → PLUS(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))
IF(even, x, y, z, u) → HALF(x)
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
TIMES(x, y) → TIMESITER(x, y, 0)
IF(even, x, y, z, u) → HALF(s(z))
TIMESITER(x, y, z) → CHECK(x)
CHECK(s(s(s(x)))) → CHECK(s(x))
PLUS(s(x), y) → PLUS(x, y)

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(x, y) → timesIter(x, y, 0)
timesIter(x, y, z) → if(check(x), x, y, z, plus(z, y))
p(s(x)) → x
p(0) → 0
if(zero, x, y, z, u) → z
if(odd, x, y, z, u) → timesIter(p(x), y, u)
if(even, x, y, z, u) → plus(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
QDP
          ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

IF(odd, x, y, z, u) → P(x)
HALF(s(s(x))) → HALF(x)
IF(even, x, y, z, u) → HALF(z)
IF(odd, x, y, z, u) → TIMESITER(p(x), y, u)
TIMESITER(x, y, z) → IF(check(x), x, y, z, plus(z, y))
TIMESITER(x, y, z) → PLUS(z, y)
IF(even, x, y, z, u) → PLUS(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))
IF(even, x, y, z, u) → HALF(x)
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
TIMES(x, y) → TIMESITER(x, y, 0)
IF(even, x, y, z, u) → HALF(s(z))
TIMESITER(x, y, z) → CHECK(x)
CHECK(s(s(s(x)))) → CHECK(s(x))
PLUS(s(x), y) → PLUS(x, y)

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(x, y) → timesIter(x, y, 0)
timesIter(x, y, z) → if(check(x), x, y, z, plus(z, y))
p(s(x)) → x
p(0) → 0
if(zero, x, y, z, u) → z
if(odd, x, y, z, u) → timesIter(p(x), y, u)
if(even, x, y, z, u) → plus(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 4 SCCs with 8 less nodes.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
QDP
                ↳ UsableRulesProof
              ↳ QDP
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PLUS(s(x), y) → PLUS(x, y)

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(x, y) → timesIter(x, y, 0)
timesIter(x, y, z) → if(check(x), x, y, z, plus(z, y))
p(s(x)) → x
p(0) → 0
if(zero, x, y, z, u) → z
if(odd, x, y, z, u) → timesIter(p(x), y, u)
if(even, x, y, z, u) → plus(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
              ↳ QDP
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PLUS(s(x), y) → PLUS(x, y)

R is empty.
The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ QDP
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PLUS(s(x), y) → PLUS(x, y)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
QDP
                ↳ UsableRulesProof
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

HALF(s(s(x))) → HALF(x)

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(x, y) → timesIter(x, y, 0)
timesIter(x, y, z) → if(check(x), x, y, z, plus(z, y))
p(s(x)) → x
p(0) → 0
if(zero, x, y, z, u) → z
if(odd, x, y, z, u) → timesIter(p(x), y, u)
if(even, x, y, z, u) → plus(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

HALF(s(s(x))) → HALF(x)

R is empty.
The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

HALF(s(s(x))) → HALF(x)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
QDP
                ↳ UsableRulesProof
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CHECK(s(s(s(x)))) → CHECK(s(x))

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(x, y) → timesIter(x, y, 0)
timesIter(x, y, z) → if(check(x), x, y, z, plus(z, y))
p(s(x)) → x
p(0) → 0
if(zero, x, y, z, u) → z
if(odd, x, y, z, u) → timesIter(p(x), y, u)
if(even, x, y, z, u) → plus(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CHECK(s(s(s(x)))) → CHECK(s(x))

R is empty.
The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CHECK(s(s(s(x)))) → CHECK(s(x))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
QDP
                ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
IF(odd, x, y, z, u) → TIMESITER(p(x), y, u)
TIMESITER(x, y, z) → IF(check(x), x, y, z, plus(z, y))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
times(x, y) → timesIter(x, y, 0)
timesIter(x, y, z) → if(check(x), x, y, z, plus(z, y))
p(s(x)) → x
p(0) → 0
if(zero, x, y, z, u) → z
if(odd, x, y, z, u) → timesIter(p(x), y, u)
if(even, x, y, z, u) → plus(timesIter(half(x), y, half(z)), timesIter(half(x), y, half(s(z))))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
IF(odd, x, y, z, u) → TIMESITER(p(x), y, u)
TIMESITER(x, y, z) → IF(check(x), x, y, z, plus(z, y))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
p(s(x)) → x
p(0) → 0
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
times(x0, x1)
timesIter(x0, x1, x2)
p(s(x0))
p(0)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

times(x0, x1)
timesIter(x0, x1, x2)
if(zero, x0, x1, x2, x3)
if(odd, x0, x1, x2, x3)
if(even, x0, x1, x2, x3)



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
IF(odd, x, y, z, u) → TIMESITER(p(x), y, u)
TIMESITER(x, y, z) → IF(check(x), x, y, z, plus(z, y))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
p(s(x)) → x
p(0) → 0
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule TIMESITER(x, y, z) → IF(check(x), x, y, z, plus(z, y)) at position [0] we obtained the following new rules:

TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
TIMESITER(0, y1, y2) → IF(zero, 0, y1, y2, plus(y2, y1))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
QDP
                            ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
IF(odd, x, y, z, u) → TIMESITER(p(x), y, u)
TIMESITER(0, y1, y2) → IF(zero, 0, y1, y2, plus(y2, y1))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
p(s(x)) → x
p(0) → 0
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
QDP
                                ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
IF(odd, x, y, z, u) → TIMESITER(p(x), y, u)
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(0) → zero
check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
p(s(x)) → x
p(0) → 0
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
QDP
                                    ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
IF(odd, x, y, z, u) → TIMESITER(p(x), y, u)
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule IF(odd, x, y, z, u) → TIMESITER(p(x), y, u) at position [0] we obtained the following new rules:

IF(odd, 0, y1, y2, y3) → TIMESITER(0, y1, y3)
IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3)



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
QDP
                                        ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

IF(odd, 0, y1, y2, y3) → TIMESITER(0, y1, y3)
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
QDP
                                            ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
QDP
                                                ↳ QReductionProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

p(s(x0))
p(0)



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
QDP
                                                    ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule IF(even, x, y, z, u) → TIMESITER(half(x), y, half(s(z))) at position [0] we obtained the following new rules:

IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(s(y2)))
IF(even, s(0), y1, y2, y3) → TIMESITER(0, y1, half(s(y2)))
IF(even, 0, y1, y2, y3) → TIMESITER(0, y1, half(s(y2)))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
QDP
                                                        ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(s(y2)))
IF(even, 0, y1, y2, y3) → TIMESITER(0, y1, half(s(y2)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(even, s(0), y1, y2, y3) → TIMESITER(0, y1, half(s(y2)))
IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 2 less nodes.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
QDP
                                                            ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(s(y2)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule IF(even, x, y, z, u) → TIMESITER(half(x), y, half(z)) at position [0] we obtained the following new rules:

IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(y2))
IF(even, s(0), y1, y2, y3) → TIMESITER(0, y1, half(y2))
IF(even, 0, y1, y2, y3) → TIMESITER(0, y1, half(y2))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
QDP
                                                                ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(s(y2)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
IF(even, 0, y1, y2, y3) → TIMESITER(0, y1, half(y2))
IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(y2))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3)
IF(even, s(0), y1, y2, y3) → TIMESITER(0, y1, half(y2))
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 2 less nodes.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
QDP
                                                                    ↳ Instantiation

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(s(y2)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(y2))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule IF(odd, s(x0), y1, y2, y3) → TIMESITER(x0, y1, y3) we obtained the following new rules:

IF(odd, s(0), z0, z1, y_0) → TIMESITER(0, z0, y_0)
IF(odd, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(s(z0)), z1, y_1)



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
QDP
                                                                        ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(s(y2)))
TIMESITER(s(0), y1, y2) → IF(odd, s(0), y1, y2, plus(y2, y1))
IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(y2))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(0), z0, z1, y_0) → TIMESITER(0, z0, y_0)
IF(odd, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(s(z0)), z1, y_1)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 2 less nodes.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
                                                                      ↳ QDP
                                                                        ↳ DependencyGraphProof
QDP
                                                                            ↳ Instantiation

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(s(y2)))
IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(y2))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(s(z0)), z1, y_1)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(s(y2))) we obtained the following new rules:

IF(even, s(s(0)), z0, z1, y_0) → TIMESITER(s(half(0)), z0, half(s(z1)))
IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
                                                                      ↳ QDP
                                                                        ↳ DependencyGraphProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
QDP
                                                                                ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(0)), z0, z1, y_0) → TIMESITER(s(half(0)), z0, half(s(z1)))
IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(y2))
IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(odd, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(s(z0)), z1, y_1)

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule IF(even, s(s(0)), z0, z1, y_0) → TIMESITER(s(half(0)), z0, half(s(z1))) at position [0,0] we obtained the following new rules:

IF(even, s(s(0)), z0, z1, y_0) → TIMESITER(s(0), z0, half(s(z1)))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
                                                                      ↳ QDP
                                                                        ↳ DependencyGraphProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
                                                                              ↳ QDP
                                                                                ↳ Rewriting
QDP
                                                                                    ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(0)), z0, z1, y_0) → TIMESITER(s(0), z0, half(s(z1)))
IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(y2))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))
IF(odd, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(s(z0)), z1, y_1)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
                                                                      ↳ QDP
                                                                        ↳ DependencyGraphProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
                                                                              ↳ QDP
                                                                                ↳ Rewriting
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
QDP
                                                                                        ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(y2))
IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))
IF(odd, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(s(z0)), z1, y_1)

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule IF(even, s(s(x0)), y1, y2, y3) → TIMESITER(s(half(x0)), y1, half(y2)) at position [0,0] we obtained the following new rules:

IF(even, s(s(s(0))), y1, y2, y3) → TIMESITER(s(0), y1, half(y2))
IF(even, s(s(0)), y1, y2, y3) → TIMESITER(s(0), y1, half(y2))
IF(even, s(s(s(s(x0)))), y1, y2, y3) → TIMESITER(s(s(half(x0))), y1, half(y2))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
                                                                      ↳ QDP
                                                                        ↳ DependencyGraphProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
                                                                              ↳ QDP
                                                                                ↳ Rewriting
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
QDP
                                                                                            ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(s(s(x0)))), y1, y2, y3) → TIMESITER(s(s(half(x0))), y1, half(y2))
IF(even, s(s(s(0))), y1, y2, y3) → TIMESITER(s(0), y1, half(y2))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))
IF(even, s(s(0)), y1, y2, y3) → TIMESITER(s(0), y1, half(y2))
IF(odd, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(s(z0)), z1, y_1)
TIMESITER(s(s(0)), y1, y2) → IF(even, s(s(0)), y1, y2, plus(y2, y1))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 3 less nodes.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
                                                                      ↳ QDP
                                                                        ↳ DependencyGraphProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
                                                                              ↳ QDP
                                                                                ↳ Rewriting
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
QDP
                                                                                                ↳ ForwardInstantiation

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(s(s(x0)))), y1, y2, y3) → TIMESITER(s(s(half(x0))), y1, half(y2))
IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(odd, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(s(z0)), z1, y_1)

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule IF(odd, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(s(z0)), z1, y_1) we obtained the following new rules:

IF(odd, s(s(s(s(y_0)))), x1, x2, x3) → TIMESITER(s(s(s(y_0))), x1, x3)



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
                                                                      ↳ QDP
                                                                        ↳ DependencyGraphProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
                                                                              ↳ QDP
                                                                                ↳ Rewriting
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ ForwardInstantiation
QDP
                                                                                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

IF(odd, s(s(s(s(y_0)))), x1, x2, x3) → TIMESITER(s(s(s(y_0))), x1, x3)
IF(even, s(s(s(s(x0)))), y1, y2, y3) → TIMESITER(s(s(half(x0))), y1, half(y2))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


IF(odd, s(s(s(s(y_0)))), x1, x2, x3) → TIMESITER(s(s(s(y_0))), x1, x3)
IF(even, s(s(s(s(x0)))), y1, y2, y3) → TIMESITER(s(s(half(x0))), y1, half(y2))
The remaining pairs can at least be oriented weakly.

TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(IF(x1, x2, x3, x4, x5)) = 1 + x2   
POL(TIMESITER(x1, x2, x3)) = 1 + x1   
POL(check(x1)) = 0   
POL(even) = 0   
POL(half(x1)) = 1 + x1   
POL(odd) = 0   
POL(plus(x1, x2)) = 0   
POL(s(x1)) = 1 + x1   

The following usable rules [17] were oriented:

half(s(s(x))) → s(half(x))
half(s(0)) → 0
half(0) → 0



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
                                                                      ↳ QDP
                                                                        ↳ DependencyGraphProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
                                                                              ↳ QDP
                                                                                ↳ Rewriting
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ ForwardInstantiation
                                                                                                  ↳ QDP
                                                                                                    ↳ QDPOrderProof
QDP
                                                                                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))
TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


IF(even, s(s(s(z0))), z1, z2, y_1) → TIMESITER(s(half(s(z0))), z1, half(s(z2)))
The remaining pairs can at least be oriented weakly.

TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(IF(x1, x2, x3, x4, x5)) = 1 + x2   
POL(TIMESITER(x1, x2, x3)) = 1 + x1   
POL(check(x1)) = 0   
POL(even) = 0   
POL(half(x1)) = x1   
POL(odd) = 0   
POL(plus(x1, x2)) = 0   
POL(s(x1)) = 1 + x1   

The following usable rules [17] were oriented:

half(s(s(x))) → s(half(x))
half(s(0)) → 0
half(0) → 0



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ Narrowing
                                      ↳ QDP
                                        ↳ DependencyGraphProof
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ QReductionProof
                                                  ↳ QDP
                                                    ↳ Narrowing
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ Narrowing
                                                              ↳ QDP
                                                                ↳ DependencyGraphProof
                                                                  ↳ QDP
                                                                    ↳ Instantiation
                                                                      ↳ QDP
                                                                        ↳ DependencyGraphProof
                                                                          ↳ QDP
                                                                            ↳ Instantiation
                                                                              ↳ QDP
                                                                                ↳ Rewriting
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ ForwardInstantiation
                                                                                                  ↳ QDP
                                                                                                    ↳ QDPOrderProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
QDP
                                                                                                            ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

TIMESITER(s(s(s(x0))), y1, y2) → IF(check(s(x0)), s(s(s(x0))), y1, y2, plus(y2, y1))

The TRS R consists of the following rules:

check(s(0)) → odd
check(s(s(0))) → even
check(s(s(s(x)))) → check(s(x))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))

The set Q consists of the following terms:

check(0)
check(s(0))
check(s(s(0)))
check(s(s(s(x0))))
half(0)
half(s(0))
half(s(s(x0)))
plus(0, x0)
plus(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 0 SCCs with 1 less node.